#include <iostream>
#include <vector>
#include <string>

using namespace std;

string convertToTitle(int columnNumber) {
    string s;
    while(columnNumber > 0){
        s += 'A' + (columnNumber - 1) % 26;
        columnNumber = (columnNumber - 1) / 26;
    }
    reverse(s.begin(), s.end());
    return s;
}

int main(){
    int columnNumber = 701;
    cout << convertToTitle(columnNumber) << endl;
    return 0;
}
